package com.twu.biblioteca;

public class BibliotecaApp {

    Menu menu = new Menu();

    public static void main(String[] args) {

        BibliotecaApp biblioteca = new BibliotecaApp();

        biblioteca.initializer();
    }

    public void initializer(){
        welcomeMessage();
        createLists();
        menu.listBooksAndMoviesAndMenu();
    }

    public void welcomeMessage(){
        System.out.println("Welcome to Bangalore Public Library");
    }

    private void createLists(){
        menu.library.bookSection.allBooks.addAll(java.util.Arrays.asList(
                new Book("Catch-22"),
                new Book("High Rise"),
                new Book("The Goon Squad"),
                new Book("The Time Machine")
        ));
        menu.library.movieSection.allMovies.addAll(java.util.Arrays.asList(
                new Movie("The Matrix", 1999, "Wachowski Brothers", 10),
                new Movie("The Skin I Live In", 2007, "Pedro Almodovar", 10),
                new Movie("A Film", 2014, "A Director", 3),
                new Movie("Another Film", 2010, "Another Director")
        ));
        menu.library.customers = new Customer[] {
                new Customer("111-4567", "a", "b", "c"),
                new Customer("123-4567", "a", "b", "c"),
                new Customer("000-9876", "a", "b", "c"),
                new Customer("135-8642", "a", "b", "c")
        };
    }



}
